summaryrefslogtreecommitdiffhomepage
path: root/packages/console/app/src/routes/workspace/[id]/settings/settings-section.module.css
blob: 6764a0534b43685061c06c173cf7e4949916d45e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.root {
  max-width: 40rem;

  [data-slot="setting"] {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);

    p {
      line-height: 1.2;
      margin: 0;
      color: var(--color-text-muted);
    }

    [data-slot="value-with-action"] {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-3);

      @media (max-width: 30rem) {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
      }
    }

    [data-slot="current-value"] {
      color: var(--color-text);
      line-height: 1.4;
      margin: 0;
    }

    > button {
      align-self: flex-start;
    }
  }

  [data-slot="create-form"] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);

    [data-slot="input-container"] {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: var(--space-2);

      @media (max-width: 30rem) {
        flex-direction: column;
        align-items: stretch;
      }

      button {
        white-space: nowrap;
        flex-shrink: 0;
      }
    }

    input {
      flex: 1;
      padding: var(--space-2) var(--space-3);
      border: 1px solid var(--color-border);
      border-radius: var(--border-radius-sm);
      background-color: var(--color-bg);
      color: var(--color-text);
      font-size: var(--font-size-sm);
      line-height: 1.5;
      min-width: 0;

      &:focus {
        outline: none;
        border-color: var(--color-accent);
        box-shadow: 0 0 0 3px var(--color-accent-alpha);
      }

      &::placeholder {
        color: var(--color-text-disabled);
      }
    }

    > button[type="reset"] {
      align-self: flex-start;
    }

    [data-slot="form-error"] {
      color: var(--color-danger);
      font-size: var(--font-size-sm);
      line-height: 1.4;
      margin-top: calc(var(--space-1) * -1);
    }
  }
}